package edu.zju.gis.dbfg.server.service;

import edu.zju.gis.dbfg.common.Page;
import edu.zju.gis.dbfg.common.base.BaseService;
import edu.zju.gis.dbfg.server.model.MapService;

import java.util.List;

/**
 * @author Chenyr
 * @date 2019/9/11
 **/
public interface MapServiceService extends BaseService<MapService, String> {
    Page<MapService> getServicesByRole(String userId, Page page);

    Page<MapService> getServicesByUser(String userId, Page page);

    Page<MapService> searchServicesByRole(String userId, String query, Page page);

    Page<MapService> searchServicesByUser(String userId, String query, Page page);
    int delete(String id);
}
